package com.lingyuan.warehouse.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingyuan.common.core.domain.vo.call.WareCall;
import com.lingyuan.warehouse.domain.WareSkuVO;

import java.util.List;

public interface SkuWareService extends IService<WareSkuVO> {
    /**
     * 添加商品库存
     */
    void addSkuWare(WareSkuVO wareSkuVO);

    /**
     * 锁定库存
     * @param wareCallList
     */
    void lockStock(List<WareCall> wareCallList);

    /**
     * 释放库存
     * @param wareCallList
     */
    void releaseStock(List<WareCall> wareCallList);
}
